package com.jiazhong.basic.pack0315.demo.shousi;

import com.jiazhong.basic.pack0315.demo.shousi.LinkedListDemo;
import com.jiazhong.basic.pack0315.demo.shousi.ListDemo;

public class App {

    public static void main(String[] args) {
        ListDemo<String> list = new LinkedListDemo<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        list.add("dd");
        list.add("ee");
        list.add(1,"kk");
        System.out.println(list);
        String s2 = list.get(2);
        System.out.println(s2);
        list.remove(4);
        System.out.println(list);
    }
}
